﻿using System;
using System.Net;

namespace suanpan.API.Components.Exceptions
{
    public class ResourceNotFoundException:RESTException
    {
        public ResourceNotFoundException(Exception ex)
            : base(ex, HttpStatusCode.NotFound, string.Format("Resource Not Found. {0}", ex.Message))
        {

        }
        public ResourceNotFoundException(string statusDescription)
            : base(new Exception(statusDescription), HttpStatusCode.NotFound, statusDescription)
        {
        }
    }
}
